projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
642588b
)
link button: Set a drag icon
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 10 Dec 2017 19:05:01 +0000
(14:05 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 10 Dec 2017 19:05:01 +0000
(14:05 -0500)
It is a bit odd to drag nothing around, so set an icon.
gtk/gtklinkbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtklinkbutton.c
b/gtk/gtklinkbutton.c
index 489178a381cce5093c4930a9ad8be5ce92fb1e70..1426a36c5e9e0f88bb5089f1d54dc4b57fff5f69 100644
(file)
--- a/
gtk/gtklinkbutton.c
+++ b/
gtk/gtklinkbutton.c
@@
-237,6
+237,7
@@
gtk_link_button_init (GtkLinkButton *link_button)
targets,
GDK_ACTION_COPY);
gdk_content_formats_unref (targets);
+ gtk_drag_source_set_icon_name (GTK_WIDGET (link_button), "text-x-generic");
priv->click_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (link_button));
gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (priv->click_gesture), FALSE);